FROM harbor.flashbeedev.top/common/jdk8:latest
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /api
WORKDIR /api
EXPOSE 9700
ADD target/flashbee-short-url.jar ./flashbee-short-url.jar
CMD java -jar -server -Xms1200m -Xmx1200m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC  -XX:MetaspaceSize=200M -XX:NewSize=100M -XX:MaxNewSize=200M -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/home/logs/flashbee-short-url.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=512k -XX:+DisableExplicitGC -XX:AutoBoxCacheMax=20000 -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -Duser.home=/tmp -Djava.awt.headless=true flashbee-short-url.jar --spring.profiles.active=dev >> /home/logs/flashbee-short-url.log 2>&1 && tail -f /dev/null
